home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 June
/
CHIP Haziran 2001.iso
/
prog
/
share
/
04
/
setup.exe
/
MM6.Cab
/
F1542_Intersection.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5
< prev
next >
Wrap
Text File
|
2000-08-17
|
5KB
|
102 lines
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Intersection Action</title>
<meta name="generator" content="Adobe GoLive 4">
</head>
<body bgcolor="white">
<center>
<font size="6">Intersection Action</font>
<hr>
</center>
<csactionclass name="Intersection" function="CSLayerIntersect" nsversion="4" ieversion="4" actiontype="3">
<csactionparam name="layer1" type="GLActionLayerParam"></csactionparam>
<csactionparam name="layer2" type="GLActionLayerParam"></csactionparam>
</csactionclass>
<p>IE Functions Script
<script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
</p>
<p>StyleVis Functions Script
<script language="JavaScript1.2" src="../../GlobalScripts/StyleVis.scpt"></script>
</p>
<p>Intersection Action Main Script
<script language="JavaScript1.2" cyberversion="N1.2"><!--
function CSLayerIntersect (condition)
{
var l1,t1,r1,b1,l2,t2,r2,b2;
if (IsIE()) {
var layer1=document.all.tags("div")[condition[1]];
var layer2=document.all.tags("div")[condition[2]];
l1=layer1.style.pixelLeft; t1=layer1.style.pixelTop; r1=layer1.offsetWidth+l1; b1=layer1.offsetHeight+t1;
l2=layer2.style.pixelLeft; t2=layer2.style.pixelTop; r2=layer2.offsetWidth+l2; b2=layer2.offsetHeight+t2;
} else {
var layer1=CSNSStyl(condition[1]);
var layer2=CSNSStyl(condition[2]);
l1=layer1.x; t1=layer1.y; r1=layer1.clip.width+l1; b1=layer1.clip.height+t1;
l2=layer2.x; t2=layer2.y; r2=layer2.clip.width+l2; b2=layer2.clip.height+t2;
}
var w = (r1 < r2 ? r1 : r2) - (l1 > l2 ? l1 : l2)
var h = (b1 < b2 ? b1 : b2) - (t1 > t2 ? t1 : t2)
return ((w >= 0) && (h >= 0));
}
// -->
</script>
</p>
<table cool width="221" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
<tr height="1" cntrlrow>
<td width="1" height="1"><spacer type="block" width="1" height="1"></td>
<td width="4" height="1"><spacer type="block" width="4" height="1"></td>
<td width="76" height="1"><spacer type="block" width="76" height="1"></td>
<td width="140" height="1"><spacer type="block" width="140" height="1"></td>
</tr>
<tr height="6">
<td width="1" height="6"><spacer type="block" width="1" height="6"></td>
<td width="4" height="6"><spacer type="block" width="4" height="6"></td>
<td width="76" height="6"><spacer type="block" width="76" height="6"></td>
<td width="140" height="6"><spacer type="block" width="140" height="6"></td>
</tr>
<tr height="3">
<td width="1" height="3"><spacer type="block" width="1" height="3"></td>
<td width="4" height="3"><spacer type="block" width="4" height="3"></td>
<td width="76" height="3"><spacer type="block" width="76" height="3"></td>
<td width="140" height="22" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
<csactioncntrl name="layer1" x="80" y="6" width="136" height="18" alignx="scale" aligny="top">
</td>
</tr>
<tr height="19">
<td width="1" height="19"><spacer type="block" width="1" height="19"></td>
<td width="4" height="19"><spacer type="block" width="4" height="19"></td>
<td width="76" height="19" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
<csactioncntrl type="InfoText" value="Floating Box" x="4" y="9" width="70" height="17" alignx="left" aligny="top">
</td>
</tr>
<tr height="3">
<td width="1" height="3"><spacer type="block" width="1" height="3"></td>
<td width="4" height="3"><spacer type="block" width="4" height="3"></td>
<td width="76" height="3"><spacer type="block" width="76" height="3"></td>
<td width="140" height="27" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
<csactioncntrl name="layer2" x="80" y="28" width="136" height="18" alignx="scale" aligny="top">
</td>
</tr>
<tr height="24">
<td width="1" height="24"><spacer type="block" width="1" height="24"></td>
<td width="4" height="24"><spacer type="block" width="4" height="24"></td>
<td width="76" height="24" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
<csactioncntrl type="InfoText" value="Floating Box" x="4" y="31" width="70" height="17" alignx="left" aligny="top">
</td>
</tr>
<tr height="97">
<td width="1" height="97"><spacer type="block" width="1" height="97"></td>
<td width="4" height="97"><spacer type="block" width="4" height="97"></td>
<td width="216" height="97" colspan="2" rowspan="1" valign="top" align="left" xpos="4">
<csactioncntrl type="InfoText" value="This action returns true if both specified Floating Boxes will be intersected otherwise it returns false." x="4" y="55" width="212" height="41" alignx="scale" aligny="top">
</td>
</tr>
</table>
</body>
</html>